import request from "@/utils/request.js";

const api_prefix = "/comment";

export function saveComments(data) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/save`,
    method: "POST",
    data: data,
  });
}

export function getComment(goodsId) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/list/${goodsId}`,
    method: "GET"
  });
}
